﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMsaster.master" AutoEventWireup="true" CodeFile="LostBook.aspx.cs" Inherits="Admin_LostBook" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

      <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:BooksManagerSystemConnectionString %>">

    </asp:SqlDataSource>

    <div id="page-wrapper">
        <div id="page-inner">
            <div class="row">
                <div class="col-md-12">
                    <h1 class="page-header">丢失图书查询 <small>您可以在选择时间段内图书丢失的记录</small>
                    </h1>
                </div>
            </div>
            <div class="row">

                <div class="col-md-12">
                    <!-- Advanced Tables -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <p style="font-size: 25px;">图书丢失的记录查询如下</p>
                        </div>

                        <div class="container" style="width: 970px">

                            <fieldset>
                                <legend></legend>
                              
                                
                                
                                 <asp:TextBox ID="TextBox1" CssClass="form-control" runat="server" Style="width: 180px;position: absolute; " placeholder="筛选条件..."  />
                                <asp:Button ID="Button3" CssClass="btn btn-primary" runat="server" Text="查询全部" Style=" margin-left: 207px;" OnClick="Cancel_Click" />
                                 <asp:Button ID="Button2" CssClass="btn btn-primary" runat="server" Text="查询图书" Style="" OnClick="book_Click" />
                                 <asp:Button ID="Cancel" CssClass="btn btn-primary" runat="server" Text="查询读者" Style=" " OnClick="reader_Click" />
                            <asp:Button ID="Button1" CssClass="btn  btn-success" runat="server" Text="导出报表" Style="" OnClick="baobiao_Click" />

                            </fieldset>
                            
                           
                  
                        </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <!-- 数据源开始 -->

                                <asp:GridView ID="mybookdata" class="mytablestyle table table-striped table-bordered table-hover" runat="server" DataSourceID="SqlDataSource1">

                                    <Columns>
                                        <asp:TemplateField HeaderText="选择">
                                            <ItemStyle HorizontalAlign="Center" />
                                            <ItemTemplate>
                                                <asp:CheckBox ID="CheckBox" CssClass="checkbox" runat="server"></asp:CheckBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                <!-- 数据源结束 -->
                                <br />

                                <script> window.onload = function asdasd() {
     $("#ContentPlaceHolder1_mybookdata tr:first").wrap("<thead></thead>");
     $("#ContentPlaceHolder1_mybookdata thead").insertBefore("#GriView1 tbody");
     $("#ContentPlaceHolder1_mybookdata").dataTable();
 }</script>
                            </div>

                        </div>
                    </div>

                    <!--End Advanced Tables -->
                </div>

            </div>
            <!-- /. ROW  -->



        </div>

        <!-- /. PAGE INNER  -->
    </div>
    <script>
        function loadtable() {
            $("#ContentPlaceHolder1_mybookdata tr:first").wrap("<thead></thead>");
            $("#ContentPlaceHolder1_mybookdata thead").insertBefore("#GriView1 tbody");
            $("#ContentPlaceHolder1_mybookdata").dataTable();
        };
    </script>


    <!-- Bootstrap Js必要 -->
    <script src="assets/js/jquery-1.10.2.js"></script>
    <script src="assets/js/bootstrap.min.js"></script>



    <script src="assets/js/bootstrap-datetimepicker.min.js"></script>
    <script src="assets/js/bootstrap-datetimepicker.zh-CN.js"></script>
    <!-- Metis Menu Js -->
    <script src="assets/js/jquery.metisMenu.js"></script>
    <!-- DATA TABLE SCRIPTS -->
    <script src="assets/js/ReportTables.js"></script>
    <script src="assets/js/dataTables/dataTables.bootstrap.js"></script>
    <!-- Custom Js -->
    <script src="assets/js/custom-scripts.js"></script>
    <!-- 日期管理 -->
    <script type="text/javascript">
        $('.form_date').datetimepicker({
            language: 'zh-CN',
            weekStart: 1,
            todayBtn: 1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 2,
            minView: 2,
            forceParse: 0,
            format: 'yyyy-mm-dd'
        });
    </script>
</asp:Content>

